import request from '@/utils/request'
export default {

  save(video) {
    return request({
      url: `/admin/edu/video/save`,
      method: 'POST',
      data: video
    })
  },
  deleteById(id) {
    return request({
      url: `/admin/edu/video/deleteById/${id}`,
      method: 'DELETE'
    })
  },
  getById(id) {
    return request({
      url: `/admin/edu/video/getById/${id}`,
      method: 'GET'
    })
  },
  updateById(video) {
    return request({
      url: `/admin/edu/video/updateById`,
      method: 'PUT',
      data: video
    })
  }

}
